package com.yan.controller.viewModel.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class BorrowInfo implements Serializable {
	private Integer id;
	private Integer uid;
	private Integer bid;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date startTime;
	private Date endTime;
	private Integer status;
	// books字段
	private Integer sid;
	private String bname;
	private String author;
	private String birth;
	private String edition;
	private String sname;
	private String uname;
	private Integer number;
	private Integer backStatus;
	// 页面数据
	private int start;
	// 当前页数
	private int currentPage;

	@Override
	public String toString() {
		return "Borrows [id=" + id + ", uid=" + uid + ", bid=" + bid + ", startTime=" + startTime + ", endTime="
				+ endTime + ", status=" + status + ", sid=" + sid + ", bname=" + bname + ", author=" + author
				+ ", birth=" + birth + ", edition=" + edition + ", sname=" + sname + ", uname=" + uname + ", number="
				+ number + "]";
	}

}
